package com.gmscosmo.janus.controller;

import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName BaseController
 * @Description
 * @author stephen.qiu
 * @date 2021/4/15 13:44
 */
public abstract class BaseController {
	@Autowired
	protected HttpServletRequest request;
	@Autowired
	protected HttpServletResponse response;
	/**
	 * 使用ModelAttribute设置request的方法在单例controller的情况下会导致线程不安全,
	 * HttpServletRequest request使用spring @Autowired 自动注入 是线程安全的。
	 *
	 * edit by stephen.qiu
	 */
}